import request from '@/utils/request'

// 查询工时管理列表
export function listWorkingHours(query) {
  return request({
    url: '/mes/workingHours/list',
    method: 'get',
    params: query
  })
}

// 查询工时管理详细
export function getWorkingHours(workingHoursUuid) {
  return request({
    url: '/mes/workingHours/' + workingHoursUuid,
    method: 'get'
  })
}

// 新增工时管理
export function addWorkingHours(data) {
  return request({
    url: '/mes/workingHours',
    method: 'post',
    data: data
  })
}

// 修改工时管理
export function updateWorkingHours(data) {
  return request({
    url: '/mes/workingHours',
    method: 'put',
    data: data
  })
}

// 删除工时管理
export function delWorkingHours(workingHoursUuid) {
  return request({
    url: '/mes/workingHours/' + workingHoursUuid,
    method: 'delete'
  })
}
